package com.hanthink.system.domain.pc;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.annotation.Excel.Type;
import com.hanthink.common.core.domain.BaseEntity;

/**
 * 设备台账对象 EM_EQUIP
 * 
 * @author hanthink
 * @date 2021-01-26
 */
public class EmEquip extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 事业部 */
	@Excel(name = "事业部")
	private String hangameKey;

	/** 工厂ID */
	@Excel(name = "工厂")
	private String siteKey;

	/** 车间 */
	@Excel(name = "车间", type = Type.EXPORT, dictType = "area_type")
	private Long areaKey;

	/** 车间 */
	@Excel(name = "车间", type = Type.IMPORT)
	private String areaName;

	/** 设备编码 */
	@Excel(name = "设备编码")
	private String name;

	/** 设备名称 */
	@Excel(name = "设备名称")
	private String desc;

	/** 类型（0：主设备 1：辅助设备） */
	@Excel(name = "类型", readConverterExp = "0=主设备,1=辅助设备")
	private String type;

	/** 状态（0：停机 1：运行） */
	@Excel(name = "状态", readConverterExp = "0=停机,1=运行")
	private String status;

	/** 父级ID */
	private Long parentKey;

	/** 设备型号 */
	@Excel(name = "设备型号")
	private String model;

	/** 设备地点 */
	@Excel(name = "设备地点")
	private String location;

	/** 计划停机时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @Excel(name = "计划停机时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date planDownTime;

	/** 计划开机时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @Excel(name = "计划开机时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date planOnTime;

	/** 使用部门 */
	@Excel(name = "使用部门")
	private String useDept;

	/** 购置时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "购置时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date purchaseTime;

	/** 经销商 */
	@Excel(name = "经销商")
	private String agent;

	/** 备注 */
	@Excel(name = "备注")
	private String remark;

	/** 设备分类 */
	@Excel(name = "设备分类")
	private String machineClass;

	/** ID */
	private Long id;

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public void setSiteKey(String siteKey) {
		this.siteKey = siteKey;
	}

	public String getSiteKey() {
		return siteKey;
	}

	public void setAreaKey(Long areaKey) {
		this.areaKey = areaKey;
	}

	public Long getAreaKey() {
		return areaKey;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getDesc() {
		return desc;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	public void setParentKey(Long parentKey) {
		this.parentKey = parentKey;
	}

	public Long getParentKey() {
		return parentKey;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getModel() {
		return model;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getLocation() {
		return location;
	}

	public void setPlanDownTime(Date planDownTime) {
		this.planDownTime = planDownTime;
	}

	public Date getPlanDownTime() {
		return planDownTime;
	}

	public void setPlanOnTime(Date planOnTime) {
		this.planOnTime = planOnTime;
	}

	public Date getPlanOnTime() {
		return planOnTime;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public String getUseDept() {
		return useDept;
	}

	public void setUseDept(String useDept) {
		this.useDept = useDept;
	}

	public Date getPurchaseTime() {
		return purchaseTime;
	}

	public void setPurchaseTime(Date purchaseTime) {
		this.purchaseTime = purchaseTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getAgent() {
		return agent;
	}
	public void setAgent(String agent) {
		this.agent = agent;
	}

	public String getMachineClass() {
		return machineClass;
	}
	public void setMachineClass(String machineClass) {
		this.machineClass = machineClass;
	}

	public String getHangameKey() {
		return hangameKey;
	}
	public void setHangameKey(String hangameKey) {
		this.hangameKey = hangameKey;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("hangameKey", getHangameKey())
				.append("siteKey", getSiteKey()).append("areaKey", getAreaKey()).append("name", getName())
				.append("desc", getDesc()).append("type", getType()).append("status", getStatus())
				.append("parentKey", getParentKey()).append("model", getModel()).append("location", getLocation())
				.append("planDownTime", getPlanDownTime()).append("planOnTime", getPlanOnTime()).append("id", getId())
				.append("useDept", getUseDept()).append("purchaseTime", getPurchaseTime()).append("remark", getRemark())
				.append("machineClass", getMachineClass())
				.append("agent", getAgent()).toString();
	}
}
